package com.wx.chapter10.final_;

/**
 * ClassName:FinalExercise01
 * Package :com.wx.chapter10.final_
 * Description :
 *
 * @Author : coder_mu
 * @Create : 2023/6/7 - 19:44
 */
public class FinalExercise01 {
    public static void main(String[] args) {
        Circle circle = new Circle(5);
        System.out.println(circle.calArea());
    }
}

class Circle {
    private double radius;
    private final double PI = 3.14;

    public Circle(double radius) {
        this.radius = radius;
    }

    public double calArea() {
        return PI * radius * radius;
    }
}